package cn.chiship.framework.docs.biz.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.web.multipart.MultipartFile;

import java.io.Serializable;

/**
 * @author lijian
 */
@ApiModel("大文件分片入参实体")
public class ChunkMultipartFileParam implements Serializable {

	private Long id;

	@ApiModelProperty(value = "文件夹ID")
	private String catalogId;

	@ApiModelProperty(value = "当前文件块")
	private Integer chunkNumber;

	@ApiModelProperty(value = "分块大小")
	private Long chunkSize;

	@ApiModelProperty(value = "当前分块大小")
	private Long currentChunkSize;

	@ApiModelProperty(value = "总大小")
	private Long totalSize;

	@ApiModelProperty(value = "文件标识")
	private String identifier;

	@ApiModelProperty(value = "文件名")
	private String filename;

	@ApiModelProperty(value = "文件类型")
	private String fileType;

	@ApiModelProperty(value = "相对路径")
	private String relativePath;

	@ApiModelProperty(value = "总块数")
	private Integer totalChunks;

	@ApiModelProperty(value = "文件类型")
	private String type;

	@ApiModelProperty(value = "要上传的文件")
	private MultipartFile file;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getCatalogId() {
		return catalogId;
	}

	public void setCatalogId(String catalogId) {
		this.catalogId = catalogId;
	}

	public Integer getChunkNumber() {
		return chunkNumber;
	}

	public void setChunkNumber(Integer chunkNumber) {
		this.chunkNumber = chunkNumber;
	}

	public Long getChunkSize() {
		return chunkSize;
	}

	public void setChunkSize(Long chunkSize) {
		this.chunkSize = chunkSize;
	}

	public Long getCurrentChunkSize() {
		return currentChunkSize;
	}

	public void setCurrentChunkSize(Long currentChunkSize) {
		this.currentChunkSize = currentChunkSize;
	}

	public Long getTotalSize() {
		return totalSize;
	}

	public void setTotalSize(Long totalSize) {
		this.totalSize = totalSize;
	}

	public String getIdentifier() {
		return identifier;
	}

	public void setIdentifier(String identifier) {
		this.identifier = identifier;
	}

	public String getFilename() {
		return filename;
	}

	public void setFilename(String filename) {
		this.filename = filename;
	}

	public String getFileType() {
		return fileType;
	}

	public void setFileType(String fileType) {
		this.fileType = fileType;
	}

	public String getRelativePath() {
		return relativePath;
	}

	public void setRelativePath(String relativePath) {
		this.relativePath = relativePath;
	}

	public Integer getTotalChunks() {
		return totalChunks;
	}

	public void setTotalChunks(Integer totalChunks) {
		this.totalChunks = totalChunks;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public MultipartFile getFile() {
		return file;
	}

	public void setFile(MultipartFile file) {
		this.file = file;
	}

}
